#include <stdio.h>

int main() {
    for (int N = 1000; N <= 9999; N++) {
        int reverseN = 0;
        int temp = N;

        // 计算N的反序数
        while (temp != 0) {
            reverseN = reverseN * 10 + temp % 10;
            temp /= 10;
        }

        // 判断N是否满足条件
        if (N * 9 == reverseN) {
            printf("The number satisfied states condition is : %d\n", N);
            break; // 找到满足条件的N后退出循环
        }
    }

    return 0;
}
